/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"2BA0C87B-FBED-4FEE-BE76-B3D6F7C66827",variableType:4}
 */
var gFormSelec = null;

/**
 *
 * @properties={typeid:24,uuid:"7F9B53AA-2D9B-419B-8032-4D4CE8AB4B45"}
 * @AllowToRunInFind
 */
function mostrarForm(frm) {
	var fs = databaseManager.getFoundSet('fwk_navigation_infocom','pantallas')
	fs.loadAllRecords()
		
	fs.find()
		
	fs.nombre = frm
		
	var cant = fs.search()
	if (cant==0)
		globals.gDialog('Error','El form "'+frm+'" no existe','Ok','CerrarForm')
	else
	{
		globals.gIdFormActual = fs.id_form
		forms.tree.clicForm(fs.id_form);
	}		
}

/**
 * @properties={typeid:24,uuid:"393AC176-130A-4AB5-BFF1-331CA838CB5D"}
 */
function volver()
{
	if (globals.gHistoriaIndice > 1)
	{	
		globals.gHistoriaIndice--
		globals.gIdFormActual = globals.ar[globals.gHistoriaIndice]
		forms.tree.clicForm(globals.gIdFormActual,'1');
		history.removeForm(globals.ar[globals.gHistoriaIndice+1])
	}
}

/**
 * Callback method for when solution is closed, force boolean argument tells if this is a force (not stopable) close or not.
 *
 * @param {Boolean} force if false then solution close can be stopped by returning false
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"CCE1A3C3-A477-47A0-A235-5E894984B5D7"}
 */
function onSolutionClose(force) {
	application.showURL(usuarios_to_uservs.sitio_web,'_self')
	return true
}
